package com.xudu.tourbackend.controller;

import com.xudu.tourbackend.entity.ScenicArea;
import com.xudu.tourbackend.entity.request.TestArea;
import io.swagger.annotations.ApiImplicitParam;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

/**
 * @className: TestController
 * @description: TODO
 * @author: xudu
 * @create: 2024-06-20
 */
@RequestMapping("/test")
public interface TestController {

    @PostMapping("/upload")
    String upload(MultipartFile file);

    @PostMapping("delete")
    void delete(String fileAdress);

    @PostMapping("scenicarea")
    @ApiImplicitParam(name = "testArea", value = "测试对象", required = true, dataTypeClass = MultipartFile.class)
    ScenicArea addScenicArea(TestArea testArea);
}
